<?php
require_once("includes/pagetop.php");
include_once("updates/CommonFeatures.php");
include_once("includes/common_snippets.php");

if(!isset($_SESSION['Allyfolio_User_ID']) || $_SESSION['Allyfolio_User_ID']==0)
{
    redirect("index.php");
}
try{

    $loggedUserObj=new UserDetails();
    if (!isset($_SESSION["User_details"])){
        $_SESSION["User_details"]=$loggedUserObj->getUserDetails($_SESSION["Allyfolio_User_ID"],true);
    }
    //$pset=$loggedUserObj->getUserPrivacyDetails($loggedUserObj->userId);
    $loggedUserObj=$_SESSION["User_details"];
    //$loggedUserObj->latestFriendNotificationsArr=array(1=>"sumer",2=>"vikas");
/*echo "<pre>";
print_r($loggedUserObj);
echo "</pre>";
*/
    
}
catch(Exception $ex){
    $logObj->writeException("home.php Exception: => ".$ex->getMessage());
    die("Home.php fetching user details".$ex->getMessage());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>AllyFolio | Page Members </title>

<link href="css/style.css" rel="stylesheet" type="text/css" media="all"  />
<script src="js/general.js"></script>
<script src="js/functions.js"></script>

<link rel="stylesheet" href="alertify/themes/alertify.core.css" />
<link rel="stylesheet" href="alertify/themes/alertify.default.css" id="toggleCSS" />
<script src="alertify/lib/alertify.min.js"></script>	
<script src="js/jquery1.10.2.min.js"></script>
<script src="js/modernizr.custom.56223.js"></script>

<script src="js/jquery.placeholder.js"></script>

	<div id="main_wrapper">
    <!--=================Header Start=======================-->
	<?php include_once "includes/header.php"; ?>
    <!--=================Header end=======================-->
    
    
    <script type="text/javascript">
    $(function() { $('input, textarea').placeholder();});
</script>
<style type="text/css">
    .chat_box{
        display:none;
    }
    .placeholder {
      color: #cccccc;
      }
</style>

<style type="text/css">
	.logo{ margin-top:10px;}
	.log_button{
	
	height:auto;
	margin:6px 0;
	overflow:hidden;
	float:left;
	margin-top:10px;
	
	}
	.new tr td{ vertical-align:top}
	
	textarea select{ border:1px solid #ccc}
	input textarea select{ border:1px solid #999}
    
    
</style>
<!-- custom post submission jquery by sujeet -->
<script src="js/autoloading.js"></script>
<script src="js/jquery.asyncpost.js"></script>
</head>

<body>
<?php
include_once "page_common.php";
?>
    <!--=================Body Contain Start=======================-->
    <div class="wrapper">
    <?php include_once("page_top.php") ?>
      <div class="header">
        <div class="contain-wrap2 shadow" style="margin-top:30px; width:100%; ">
          
        <div class="home_left">
            <?php include_once("home_leftsidebar.php"); ?>
		</div>
		<div class="home_right">
		<table width="100%" border="0">
			<tr>
				<td>
					<table>
				        <tr>
				        	<td>
				        		<div class="upVidSec">
					        	<?php 
					        		if( count($arrPageMemberCount)>0)
					        		{
					        			for($i=0;$i<count($arrPageMemberCount);$i++)
					        			{
					        	?>
								
				        			<div class="upVid">
				       				<?php
				       					if($i==0)
				       					{
									?>
										<h5>Member<?php if( count($arrPageMemberCount)!=1) {?>s <?php } ?> <?php echo count($arrPageMemberCount); ?></h5>
									<?php		
										}
										else
										{
									?>
										<h5>&nbsp;</h5>
									<?php		
										}
									?>	
				                     	<div class="vid"></div>
				                    	<span style="text-shadow:none;"><a href="javascript:void(0);" onclick="alertify.alert('It will display the User's DNA page.');"><?php echo $arrPageMemberCount[$i]["Full_Name"]; ?></a></span>
				                    </div> 
				                <?php
				                		}
				                	}
								?>     
				                </div>
				            </td>
				        </tr>
			        </table>		
				</td>
				<td width="15%" style="vertical-align:top;">
					<?php include_once "page_right_links.php"; ?>
				</td>
				<td></td>
			</tr>	
		</table>
		</div> 
	      
</div>

    </div>
    
    <div class="clearfix"></div>
    <!--=================Body Contain end=======================-->
	
	
	
	
    </div>
    
    
    <div class="clearfix"></div>
    <?php include_once "includes/footer.php"; ?>
    
</div>
    <!--=================Footer end=======================-->
    
    
</body>
</html>
<script>
<?php
if(isset($msg_success) && $msg_success!="")
{
    ?>
    alertify.alert("<?php echo $msg_success; ?>");
    <?php
}

if(isset($msg_error) && $msg_error!="")
{
    ?>
    alertify.alert("<?php echo $msg_error; ?>");
    <?php
}
?>
</script>
